package cn.edu.neusoft.wuguangsheng.market.model;

import cn.edu.neusoft.wuguangsheng.market.bean.RegisterBean;
import cn.edu.neusoft.wuguangsheng.market.iface.CartSetFlag;
import cn.edu.neusoft.wuguangsheng.market.listener.TListener;
import cn.edu.neusoft.wuguangsheng.market.service.AllService;
import retrofit2.Call;
import retrofit2.Retrofit;
/**
 * Created by little on 2018/4/26.
 */

public class CartSetFlagModel extends RetrofitBaseModel  implements CartSetFlag <RegisterBean>{
    private AllService allService;
    private Retrofit retrofit;
    public CartSetFlagModel(){
        retrofit=getRetrofit();
        allService=getAllService();
    }
    @Override
    public void cartSetFlag(String cid,String flag, TListener<RegisterBean> tListener) {
        Call<RegisterBean> call=allService.cartSetFlag(cid,flag);
        callenqueue(call,tListener);
    }
}
